package com.example.demo.TakeMaterial.service;

import com.example.demo.TakeMaterial.dto.AddGood;
import com.example.demo.TakeMaterial.dto.RequisitionEditInfo;
import com.example.demo.TakeMaterial.entity.MaterialRequisition;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.demo.common.ResponseData;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author wangxuan
 * @since 2021-05-17
 */
public interface MaterialRequisitionService extends IService<MaterialRequisition> {
    //所有的验收记录
    ResponseData selectAll();

    //通过领料流水号查找
    ResponseData selectById(String id);

    //添加物料
    ResponseData insertGoods(AddGood goods);

    //修改物料信息
    ResponseData editGood(MaterialRequisition materialRequisition);

    //删除物料信息
    ResponseData RemoveGood(String id);

    //按流水号查数据
    ResponseData Select_AccId(String acceptId);

    //绑定验收流水号
    ResponseData Select(String department, String provider);

    //修改物料信息
    ResponseData editMater(MaterialRequisition materialRequisition);

    //删除物料信息
    ResponseData removeMater(String id);

    //ResponseData selectAll();
    ResponseData selectByHeaderStatus(String status);
    ResponseData deliveryEdit(RequisitionEditInfo updForm);
}
